/**
 * There are <a href="https://github.com/thinkgem/jeesite">JeeSite</a> code generation
 */
package com.chlitina.store.modules.sys.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.chlitina.store.common.persistence.BaseEntity;

/**
 * 费率Entity
 * @author lvbo
 * @version 2013-06-28
 */
@Entity
@Table(name = "settings")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Settings extends BaseEntity {
	
	private static final long serialVersionUID = 1L;
	private String key = null; 		//费率代码
	private Integer intValue = null; 		//对应整型
	private Float floatValue = null; 		//对应浮点型
	private String stringValue = null; 		//对应字符串型

	public Settings() {
	}

	@Id
	@GeneratedValue(strategy = GenerationType.TABLE)
	@Column(name="`key`")
	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	@Column(name="int_value", nullable=true)
	public Integer getIntValue() {
		return intValue;
	}

	public void setIntValue(Integer intValue) {
		this.intValue = intValue;
	}

	@Column(name="float_value", nullable=true)
	public Float getFloatValue() {
		return floatValue;
	}

	public void setFloatValue(Float floatValue) {
		this.floatValue = floatValue;
	}

	@Column(name="string_value", nullable=true)
	public String getStringValue() {
		return stringValue;
	}

	public void setStringValue(String stringValue) {
		this.stringValue = stringValue;
	}
	
}


